package com.clip.entity;

public class Clipmessage implements java.io.Serializable {
	private Integer id;
	private Integer eventid;
	private Integer uid;
	private String content;
	private Long replytime;
	private int msgtype;
	public static int NORMALTYPE=0;
	public static int INTERESTEVENTTYPE=1;
	public static int CANCELINTERESTEVENTTYPE=2;
	public static int CONFIRMEVENTTYPE=3;
	public static int FORWARDEVENTTYPE=4;
	public static int QUITEVENTTYPE=5;
	//以下两个只属于商家的
	public static int FAVOREVENTTYPE=6;
	public static int CANCELFAVOREVENTTYPE=7;
	public Clipmessage() {
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getEventid() {
		return eventid;
	}
	public void setEventid(Integer eventid) {
		this.eventid = eventid;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Long getReplytime() {
		return replytime;
	}

	public void setReplytime(Long replytime) {
		this.replytime = replytime;
	}

	public int getMsgtype() {
		return msgtype;
	}

	/**
	 * @param msgtype	
	*		NORMALTYPE=0
	*		INTERESTEVENTTYPE=1;
	*		CANCELINTERESTEVENTTYPE=2;
	*		CONFIRMEVENTTYPE=3;
	*		FORWARDEVENTTYPE=4;
	*		QUITEVENTTYPE=5;
	*		//以下两个只属于商家的
	*		FAVOREVENTTYPE=6;
	*		CANCELFAVOREVENTTYPE=7;
	 */
	public void setMsgtype(int msgtype) {
		this.msgtype = msgtype;
	}
	public static String getMsgtypeMeaning(int msgtype){
		String str=null;
		switch (msgtype) {
			case 0:
				str="评论:";
				break;
			case 1:
				str="对该档期表示感兴趣";
				break;
			case 2:
				str="取消了对该档期的感兴趣";
				break;
			case 3:
				str="已经对该档期一拍即合";
				break;
			case 4:
				str="已经对该档期呼朋唤友";
				break;
			case 5:
				str="已退出了该档期活动";
				break;
			case 6:
				str="喜欢该档期";
				break;
			case 7:
				str="取消对该档期的喜欢";
				break;
			default:
				break;
		}
		return str;
	}
}
